package git.determinal.template.dao.impl;

import git.determinal.template.anno.MyComponent;
import git.determinal.template.dao.UserDao;
import org.springframework.beans.factory.InitializingBean;

/**
 * @Description
 * @Author determinal
 * @Date 2024/6/20 下午2:07
 */
//@MyComponent("userDao")
public class UserDaoImpl implements UserDao, InitializingBean {
    private String username;

    public void setUsername(String username) {
        this.username = username;
    }

    public UserDaoImpl() {
        System.out.println("userDao实例化");
    }

    public void init() {
        System.out.println("init初始化方法执行");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("属性设置之后执行");
    }
}
